package org.example.myleet.p547;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(1 == solution.findCircleNum(new int[][]{
                {1}
        }));
        Assert.isTrue(2 == solution.findCircleNum(new int[][]{
                {1,1,0},
                {1,1,0},
                {0,0,1}
        }));
        Assert.isTrue(3 == solution.findCircleNum(new int[][]{
                {1,0,0},
                {0,1,0},
                {0,0,1}
        }));
        Assert.isTrue(1 == solution.findCircleNum(new int[][]{
                {1,0,0,0,1},
                {0,1,0,0,1},
                {0,0,1,0,1},
                {0,0,0,1,1},
                {1,1,1,1,1}
        }));
    }
}
